package com.yami.shop.bean.param;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author Yami
 */
@Data
public class VisitorTopParam {

    /**
     * 商品id
     */
    @Schema(description = "商品id")
    private Long prodId;

    /**
     * 店铺名称
     */
    @Schema(description = "店铺名称")
    private String shopName;

    /**
     * 商品名称
     */
    @Schema(description = "商品名称")
    private String prodName;

    /**
     * 商品主图
     */
    @Schema(description = "商品主图")
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    /**
     *     访客数
     */
    @Schema(description = "访客数")
    private Integer visitorNum;
    /**
     *     访问-支付转化率
     *     支付的人数/访问的人数
     */
    @Schema(description = "访问-支付转化率")
    private Double visitorToPayRate;
}
